﻿@model EyeOpen.Mvc.Models.WebSiteViewModel
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>@Model.ContentLocalizedViewModel.Title</title>
	<meta name="description" content="@Model.ContentLocalizedViewModel.Description" />
	<meta name="keywords" content="@Model.ContentLocalizedViewModel.Keywords" />
	<script src="/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
	<script src="/Scripts/jquery-ui-1.8.11.min.js" type="text/javascript"></script>
	<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
	<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
</head>
<body>
	<script type="text/javascript">
		$(document).ready(function () {
			$("body").css("display", "none");

			$("body").fadeIn(2000);

			$("a.transition").click(function (event) {
				event.preventDefault();
				linkLocation = this.href;
				$("body").fadeOut(1000, redirectPage);
			});

			function redirectPage() {
				window.location = linkLocation;
			}
		});
	</script>               
	<div id="page" class="page">
		<header>
			<div id="title">
				<h1>@Model.ContentLocalizedViewModel.Title</h1>
			</div>
			<div id="logindisplay">
				@Html.Partial("_LogOnPartial")
			</div>
			<nav>
				<ul id="menu">
					@foreach (var sectionViewModel in Model.SectionViewModelList)
					{
						if (Request.Path == sectionViewModel.FullPath)
						{ 
							<li><span title="@sectionViewModel.Title">@sectionViewModel.Text</span></li>
						}
						else
						{
							<li><b><a href="@Url.Content(sectionViewModel.FullPath)" title="@sectionViewModel.Title">@sectionViewModel.Text</a></b></li>
						}
					}
				</ul>
			</nav>
		</header>
		<section id="main">
			@RenderBody()
		</section>
		<footer>
		</footer>
	</div>
</body>
</html>